import loginPage from "../views/loginPage";


export default {
  routes: [
    {
      path: "/login",
      component: loginPage,
    },
    {
      path: "/index",
      component: () => import("../views/indexPage"),
    },
    {
      path: "/china",
      component: () => import("../views/chinaPage"),
    },
    {
      path: "/scatter",
      component: () => import("../views/scatterPage"),
    },
    {
      path: "/pie",
      component: () => import("../views/piePage"),
    },
    {
      path: "/data-set",
      component: () => import("../views/dataSetPage"),
    },
    {
      path: "/bars",
      component: () => import("../views/barsPage"),
    },
    {
      path: "/about",
      component: () => import("../views/aboutPage"),
    },
  ],

  // 即 只要调用本函数，例如执行  `push('/draw-cat')`，则将路由跳转至 `/draw-cat`
  push(path) {
    location.hash = path;
  },
};
